package com.sky.hystrix.web;

import com.sky.hystrix.service.IHystrixService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hystrix")
public class HystrixController {

    @Autowired
    private IHystrixService hystrixService;

    @GetMapping("testHystrix")
    public void testHystrix(){
        hystrixService.testHystrix();
    }
}
